package com.googlecode.imanager.client.io;

import java.io.IOException;

/**
 * @author wellsantos@wellsantos.com
 * @since 0.01
 */
public interface InputStream {

    int readByte() throws IOException;
    int readBytes(byte[] b) throws IOException;
    int readBytes(byte[] b, int off, int len) throws IOException;
    
    int readChar() throws IOException;    
    int readChars(char[] b) throws IOException;    
    int readChars(char[] b, int off, int len) throws IOException;
    
    CharSequence readSequence() throws IOException;
    CharSequence readSequence(int size) throws IOException;
    
    int available() throws IOException;
    long skip(long n) throws IOException;
    void close() throws IOException;
    
}
